package com.hmall.cart.controller.inner;


import com.hmall.api.cart.CartInnerClient;
import com.hmall.cart.service.ICartService;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import java.util.Collection;

@Api(tags = "购物车相关接口")
@RestController
@RequestMapping("/inner/carts")
@RequiredArgsConstructor
@Slf4j
public class CartInnerController implements CartInnerClient {
    private final ICartService cartService;
    @DeleteMapping
    @Override
    public void deleteCartItemByUserIdAndIds(Long userId,Collection<Long> ids) {
        cartService.deleteCartItemByUserIdAndIds(userId,ids);
    }
}
